#ifndef _BOSS_2_ITEM_ENTITY_H
#define _BOSS_2_ITEM_ENTITY_H

#include "Boss2ItemData.h"
#include "AbstractEntity.h"
#include "BossItemPhysics.h"

enum MovingState
{
	STATE_MOVING_UP = 1,
	STATE_MOVING_LEFT = 2,
	STATE_MOVING_TOP = 3,
	STATE_MOVING_DOWN = 4,
	STATE_NONE = 5
};

class Boss2ItemEntity : public AbstractEntity
{
public:
	Boss2ItemEntity(int type, double x, double y);
	virtual void update(long time);

	virtual void draw(long time);

	virtual AbstractData* getAbstractData();

	void setMovingState(MovingState movingState);

	~Boss2ItemEntity();

private:
	Boss2ItemData* _data;
	BossItemPhysics* _itemsPhysics;

	void _move(MovingState movingState);
};



#endif 